package eirkdbd.lab1.data;

/**
 * Represents team from database as object. </br> Team is described by following
 * parameters: </br>
 */
public class Team {
	private String player;
	private String team;
	private int match;
	private int goals;
	private int assist;
	private int points;
	private int penalty;
	private int advantage;
	private int accuracy;
	private int winnerGoals;
	private int shoots;

	public Team() {
	}

	public Team(Team team) {
		super();
		this.player = team.player;
		this.team = team.team;
		this.match = team.match;
		this.goals = team.goals;
		this.assist = team.assist;
		this.points = team.points;
		this.penalty = team.penalty;
		this.advantage = team.advantage;
		this.accuracy = team.accuracy;
		this.winnerGoals = team.winnerGoals;
		this.shoots = team.shoots;
	}

	public String getPlayer() {
		return player;
	}

	public void setPlayer(String player) {
		this.player = player;
	}

	public String getTeam() {
		return team;
	}

	public void setTeam(String team) {
		this.team = team;
	}

	public int getMatch() {
		return match;
	}

	public void setMatch(int match) {
		this.match = match;
	}

	public int getGoals() {
		return goals;
	}
	
	public int getBramkostrzelnosc() {
		return goals;
	}

	public void setGoals(int goals) {
		this.goals = goals;
	}

	public int getAssist() {
		return assist;
	}
	
	public int getAsysty() {
		return assist;
	}

	public void setAssist(int assist) {
		this.assist = assist;
	}

	public int getPoints() {
		return points;
	}

	public void setPoints(int points) {
		this.points = points;
	}

	public int getPenalty() {
		return penalty;
	}

	public void setPenalty(int penalty) {
		this.penalty = penalty;
	}

	public int getAdvantage() {
		return advantage;
	}

	public void setAdvantage(int advantage) {
		this.advantage = advantage;
	}

	public int getAccuracy() {
		return accuracy;
	}

	public void setAccuracy(int accuracy) {
		this.accuracy = accuracy;
	}

	public int getWinnerGoals() {
		return winnerGoals;
	}

	public void setWinnerGoals(int winnerGoals) {
		this.winnerGoals = winnerGoals;
	}

	public int getShoots() {
		return shoots;
	}

	public void setShoots(int shoots) {
		this.shoots = shoots;
	}
	
	public int getAgresywnosc(){
		return penalty;
	}
	
	public int getCelnosc(){
		return accuracy;
	}
	
	public int getMecze(){
		return match;
	}

	@Override
	public String toString() {
		return "Team [player=" + player + ", team=" + team + ", match=" + match
				+ ", goals=" + goals + ", assist=" + assist + ", points="
				+ points + ", penalty=" + penalty + ", advantage=" + advantage
				+ ", accuracy=" + accuracy + ", winnerGoals=" + winnerGoals
				+ ", shoots=" + shoots + "]";
	}

	/**
	 * Returns pretty formated team full description
	 * 
	 * @return
	 */
	public String fullDescription() {
		return String
				.format("%-10s\t%-20s\t%-3s\t%-3s\t%-3s\t%-3s\t%-3s\t%-3s\t%-3s\t%-3s\t%-3s",
						player, team, match, goals, assist, points, penalty,
						advantage, accuracy, winnerGoals, shoots);
	}

}
